﻿@model blacksoft.Models.Producto_x_Proveedor

@{
    ViewBag.Title = "Create";
    Layout = "~/Views/Shared/_LayoutCompras.cshtml";
}

@if (TempData["MODCOMP_ProdProv_create_failure_cant"] != null)
{
    <div class="error grid_12">
        <h3>Error: @TempData["MODCOMP_ProdProv_create_failure_cant"]</h3>
        <a class="hide_btn" href="#"></a>
    </div>
}

@if (TempData["MODCOMP_ProdProv_create_failure_exis"] != null)
{
    <div class="error grid_12">
        <h3>Error: @TempData["MODCOMP_ProdProv_create_failure_exis"]</h3>
        <a class="hide_btn" href="#"></a>
    </div>
}

@if (TempData["MODCOMP_ProdProv_create_failure"] != null)
{
    <div class="error grid_12">
        <h3>Error: @TempData["MODCOMP_ProdProv_create_failure"]</h3>
        <a class="hide_btn" href="#"></a>
    </div>
}


<div class="block big">
    <div class="titlebar">
        <h3>Nuevo Producto del Proveedor</h3>
    </div>
    <div class="block_cont">

        @using (Html.BeginForm())
        {
            @Html.AntiForgeryToken()

            <div class="form">
                @Html.ValidationSummary(true)

                <div class="form-row">
                    @Html.Label("Proveedor")
                    @Html.DropDownList("IDPersona", null, "Seleccione", new { @class = "select", @disabled = "disabled" })
                    @Html.HiddenFor(model => model.IDPersona)
                    @Html.ValidationMessageFor(model => model.IDPersona)
                </div>

                <div class="form-ro">
                    @Html.Label("Producto")
                    @Html.DropDownList("IDProducto", "Seleccione")
                    @Html.ValidationMessageFor(model => model.IDProducto)
                </div>

                <div class="form-row">
                    @Html.LabelFor(model => model.Precio, new { @class = "control-label col-md-2" })
                    @Html.EditorFor(model => model.Precio)
                    @Html.ValidationMessageFor(model => model.Precio)
                </div>
                <br />
                <div class="form-group">
                        <input type="submit" value="Registrar" class="btn btn-default" />
                        <br />
                        @Html.ActionLink("Regresar al listado", "Index")
                </div>
            </div>
        }
    </div>
</div>